package com.hotacorp.opencloud.gateway.feign;

import org.springframework.cloud.openfeign.FeignClient;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.RequestParam;

/**
 * 调用认证服务Feign，获取用户信息
 * @author lwg
 *
 */
@FeignClient(value="${security.oauth2.servicename}", fallback=TokenInfoFeignClientHystric.class)
public interface TokenInfoFeignClient {
	
	@GetMapping(value = "/oauth/check_token", params = "token")
	String getTokenInfo(@RequestParam("token") String token);
}
